package com.zb.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 编码表
 * </p>
 *
 * @author WEN
 * @since 2023-08-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjCode对象", description="编码表")
public class ZjCode implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主健ID")
    private Long id;

    @ApiModelProperty(value = "商家ID")
    private Long custAccId;

    @ApiModelProperty(value = "编码批次ID")
    private Long batchId;

    @ApiModelProperty(value = "编码批次商品表ID")
    private Long batchGoodsId;

    @ApiModelProperty(value = "编码类型：1-成品、2-备件")
    private Integer type;

    @ApiModelProperty(value = "商品ID")
    private Long goodsId;

    @ApiModelProperty(value = "商品规格ID")
    private Long goodsSpecId;

    @ApiModelProperty(value = "防伪编码")
    private String securityCode;

    @ApiModelProperty(value = "仓储编码")
    private String storeCode;

    @ApiModelProperty(value = "编码状态：1-未质保，2-质保中、3-已过保，4-已作废")
    private Integer status;

    @ApiModelProperty(value = "是否编码存档：0-否，1-是")
    @TableField("is_archived")
    private Boolean archived;

    @ApiModelProperty(value = "仓库ID")
    private Long storeId;

    @ApiModelProperty(value = "仓库仓位ID")
    private Long storePositionId;

    @ApiModelProperty(value = "编码出入库状态：1-未出入库，2-预入库，3-已入库，4-预出库，5-已出库")
    private Integer storeStatus;

    @ApiModelProperty(value = "是否激活：0-否，1-是")
    @TableField("is_activa")
    private Boolean activa;

    @ApiModelProperty(value = "是否出库激活：0-否，1-是")
    @TableField("is_out_store_activa")
    private Boolean outStoreActiva;

    @ApiModelProperty(value = "激活时间")
    private Date activaTime;

    @ApiModelProperty(value = "是否出库质保：0-否，1-是")
    @TableField("is_out_store_warranty")
    private Boolean outStoreWarranty;

    @ApiModelProperty(value = "质保周期/天数")
    private Integer warrantyDay;

    @ApiModelProperty(value = "质保开始时间")
    private Date warrantyStartTime;

    @ApiModelProperty(value = "质保结束时间")
    private Date warrantyEndTime;

    @ApiModelProperty(value = "编码来源：1-系统创建，2-系统导入，3-工单报单创建，4-第三方系统编码")
    private Integer codeSource;

    @ApiModelProperty(value = "网点表ID")
    private Long networkId;

    @ApiModelProperty(value = "网点名称")
    private String network;

    @ApiModelProperty(value = "是否禁用：0-否，1-是")
    @TableField("is_disabled")
    private Boolean disabled;

    @ApiModelProperty(value = "创建人员ID")
    private Long createEmpId;

    @ApiModelProperty(value = "创建人员")
    private String createEmp;

    @ApiModelProperty(value = "更新人员ID")
    private Long updateEmpId;

    @ApiModelProperty(value = "更新人员")
    private String updateEmp;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;


}
